<%@include file="/WEB-INF/views/includes/taglibs.jsp"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@include file="/WEB-INF/views/includes/adminHeader.jsp"%>
<script>
</script>
<div class="homePage ui-tabs-panel ui-widget-content ui-corner-bottom">
	<div id="leftMenu">
		<%@include file="/WEB-INF/views/includes/userAdminLeftNav.jsp"%>
	</div>
	<div id="rightContent">
	<h2>Create new User</h2>
	<%@include file="/WEB-INF/views/includes/messages.jsp"%>
		<form:form method="post" action="submitCreateUser" id="createUserform">
			<table>
				<tr>
					<td><form:label path="userName">User Name</form:label></td>
					<td><form:input path="userName" autocomplete="off"/></td>
				</tr>
				<tr>
					<td><form:label path="password">Password</form:label></td>
					<td><form:password path="password" autocomplete="off"/></td>
				</tr>
				<tr>
					<td><form:label path="passwordrep">Repeat Password</form:label></td>
					<td><form:password path="passwordrep" autocomplete="off"/></td>
				</tr>
				<tr>
					<td><form:label path="email">Email</form:label></td>
					<td><form:input path="email" autocomplete="off"/></td>
				</tr>
				<tr>
					<td><form:label path="sysGroup">User Role</form:label></td>
					<td><form:select path="sysGroup" items="${sysGroups}"
							itemValue="id" itemLabel="name" autocomplete="off">
						</form:select></td>
				</tr>
				<tr>
					<td><form:label path="bizGroup">Business Group</form:label></td>
					<td><form:select path="bizGroup" items="${bizGroups}"
							itemValue="id" itemLabel="name" autocomplete="off">
						</form:select></td>
				</tr>
			</table>
			<br/>
			<button type="button"
				class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
				onclick="save()">
				<span class="ui-button-text">Save</span>
			</button>
			<script type="text/javascript">
				function save() {
					$('#createUserform').submit();
				}
			</script>
		</form:form>
		<div style="height:1px;width:740px;"></div>
	</div>
</div>

<%@include file="/WEB-INF/views/includes/adminfooter.jsp"%>